package com.forlgb.powercloud.base.client.source.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lyk
 * @since 2021-05-28
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping(value = "/test")
    public String test(){
        return "success";
    }

    //测试该方法在数据库中是admin角色专属，lyk角色则无法访问
    @RequestMapping("/hello")
    public String hello() {
        return "hello";
    }
}
